export const renderMessageType = (msg) => {
    const { attach, type, content } = msg;
    if (type == 'notification' && attach.type == "memberEnter") {
        return 'memberEnter'
    } else if (type == 'text') {
        return 'text'
    } else if (type == 'custom') {
        let { content } = msg;
        content = content && JSON.parse(content);
        const { data, first, second } = content;
        if (first == 20 && second == 204) {
            return 'custom'
        }
        if (data.giftId || data.luckyGiftList) {
            return 'giftGive'
        }
    }
}